package com.ruoyi.hatha.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.springframework.data.annotation.Transient;

/**
 * 预约管理对象 p_yuyue
 * 
 * @author Dong
 * @date 2024-01-02
 */
public class PYuyue extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 课程ID */
    @Excel(name = "课程ID")
    private Long kcid;

    /** 关联我的课程 */
    @Excel(name = "关联我的课程")
    private Long mkid;

    /** 预约时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date yytime;

    private Date createtime;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long uid;

    private Integer state;

    private Long mdid;
    private Long lid;
    private Long rid;

    @Transient
    private PKecheng kc;

    @Transient
    private SysUser user;

    public SysUser getUser() {
        return user;
    }

    public void setUser(SysUser user) {
        this.user = user;
    }

    private Long ykid;

    private Long vid;

    public Long getLid() {
        return lid;
    }

    public void setLid(Long lid) {
        this.lid = lid;
    }

    public Long getRid() {
        return rid;
    }

    public void setRid(Long rid) {
        this.rid = rid;
    }

    public Long getVid() {
        return vid;
    }

    public void setVid(Long vid) {
        this.vid = vid;
    }

    public Long getYkid() {
        return ykid;
    }

    public void setYkid(Long ykid) {
        this.ykid = ykid;
    }

    public PKecheng getKc() {
        return kc;
    }

    public void setKc(PKecheng kc) {
        this.kc = kc;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public Long getMdid() {
        return mdid;
    }

    public void setMdid(Long mdid) {
        this.mdid = mdid;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setKcid(Long kcid) 
    {
        this.kcid = kcid;
    }

    public Long getKcid() 
    {
        return kcid;
    }
    public void setMkid(Long mkid) 
    {
        this.mkid = mkid;
    }

    public Long getMkid() 
    {
        return mkid;
    }
    public void setYytime(Date yytime) 
    {
        this.yytime = yytime;
    }

    public Date getYytime() 
    {
        return yytime;
    }
    public void setUid(Long uid) 
    {
        this.uid = uid;
    }

    public Long getUid() 
    {
        return uid;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("kcid", getKcid())
            .append("mkid", getMkid())
            .append("yytime", getYytime())
            .append("createtime", getCreatetime())
            .append("uid", getUid())
            .append("state", getState())
            .append("mdid", getMdid())
            .append("ykid", getYkid())
            .append("vid", getVid())
            .append("lid", getLid())
            .append("rid", getRid())
            .toString();
    }
}
